using UnityEngine;
using UnityEngine.EventSystems;

public class BoostButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IEventSystemHandler
{
	private bool isTouching;

	public bool IsTouching
	{
		get
		{
			return isTouching;
		}
	}

	public void OnPointerExit(PointerEventData eventData)
	{
		isTouching = false;
	}

	public void OnPointerEnter(PointerEventData eventData)
	{
		isTouching = true;
	}

	private void OnEnable()
	{
		isTouching = false;
	}

	private void OnDisable()
	{
		isTouching = true;
	}
}
